package com.wwg.market.ui.service.dto.member;

import com.wwg.market.ui.service.dto.BaseDto;
import com.wwg.market.ui.service.dto.GeneralCodeDto;

import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 *
 * @author gaoyang
 * @version $Id: $
 * @date 12-2-25 上午12:18
 */
public class MemberDto extends BaseDto {
    private String username;
    private String password;
    private String name; //会员姓名
    private MemberLevelDto level; //会员等级
    private GeneralCodeDto gender; //性别  -1 保密  0 男 1 女
    private GeneralCodeDto city; //城市
    private Integer point; //积分
    private Double balance; //卡内余额   -- (todo:会员卡关联？)
    private Boolean locked; // 是否锁定
    private long loginCount; //登陆次数
    private Date lastLoginTime; //上次登陆时间
    private String email;
    private String qq;
    private String phone;
    private Date registerTime;  //注册时间
    private String registerIP;  //注册ip
    private String creator; // system or administrator


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public MemberLevelDto getLevel() {
        return level;
    }

    public void setLevel(MemberLevelDto level) {
        this.level = level;
    }

    public GeneralCodeDto getGender() {
        return gender;
    }

    public void setGender(GeneralCodeDto gender) {
        this.gender = gender;
    }

    public GeneralCodeDto getCity() {
        return city;
    }

    public void setCity(GeneralCodeDto city) {
        this.city = city;
    }

    public Integer getPoint() {
        return point;
    }

    public void setPoint(Integer point) {
        this.point = point;
    }

    public Double getBalance() {
        return balance;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    public Boolean getLocked() {
        return locked;
    }

    public void setLocked(Boolean locked) {
        this.locked = locked;
    }

    public long getLoginCount() {
        return loginCount;
    }

    public void setLoginCount(long loginCount) {
        this.loginCount = loginCount;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public String getRegisterIP() {
        return registerIP;
    }

    public void setRegisterIP(String registerIP) {
        this.registerIP = registerIP;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    @Override
    public String toString() {
        return "MemberDto{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", level=" + level +
                ", gender=" + gender +
                ", city=" + city +
                ", point=" + point +
                ", balance=" + balance +
                ", locked=" + locked +
                ", loginCount=" + loginCount +
                ", lastLoginTime=" + lastLoginTime +
                ", email='" + email + '\'' +
                ", qq='" + qq + '\'' +
                ", phone='" + phone + '\'' +
                ", registerTime='" + registerTime + '\'' +
                ", registerIP='" + registerIP + '\'' +
                ", creator='" + creator + '\'' +
                '}';
    }
}
